.class final Lcom/ninesky/browser/bb;
.super Landroid/os/AsyncTask;


# instance fields
.field private synthetic a:Lcom/ninesky/browser/ao;

.field private final synthetic b:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/ninesky/browser/ao;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/bb;->a:Lcom/ninesky/browser/ao;

    iput-object p2, p0, Lcom/ninesky/browser/bb;->b:Ljava/lang/String;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method


# virtual methods
.method public final bridge varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 4

    iget-object v0, p0, Lcom/ninesky/browser/bb;->a:Lcom/ninesky/browser/ao;

    iget-object v0, v0, Lcom/ninesky/browser/ao;->a:Lcom/ninesky/browser/n;

    invoke-static {v0}, Lcom/ninesky/browser/n;->a(Lcom/ninesky/browser/n;)Lcom/ninesky/browser/BrowserActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    iget-object v1, p0, Lcom/ninesky/browser/bb;->b:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/ninesky/browser/provider/b;->b(Landroid/content/ContentResolver;Ljava/lang/String;)I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_0

    iget-object v2, p0, Lcom/ninesky/browser/bb;->a:Lcom/ninesky/browser/ao;

    iget-object v2, v2, Lcom/ninesky/browser/ao;->a:Lcom/ninesky/browser/n;

    invoke-static {v2}, Lcom/ninesky/browser/n;->c(Lcom/ninesky/browser/n;)Landroid/webkit/WebView;

    move-result-object v2

    invoke-virtual {v2}, Landroid/webkit/WebView;->capturePicture()Landroid/graphics/Picture;

    move-result-object v2

    iget-object v3, p0, Lcom/ninesky/browser/bb;->a:Lcom/ninesky/browser/ao;

    iget-object v3, v3, Lcom/ninesky/browser/ao;->a:Lcom/ninesky/browser/n;

    invoke-static {v3}, Lcom/ninesky/browser/n;->a(Lcom/ninesky/browser/n;)Lcom/ninesky/browser/BrowserActivity;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/ninesky/a/d;->a(Landroid/graphics/Picture;Landroid/content/Context;)Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-static {v0, v1, v2}, Lcom/ninesky/browser/provider/b;->a(Landroid/content/ContentResolver;ILandroid/graphics/Bitmap;)V

    :cond_0
    const/4 v0, 0x0

    return-object v0
.end method
